"""
中信接口测试
"""
import os
import sys
import django

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.extend([BASE_DIR, ])
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "finance_c2c.settings")
django.setup()

from apps.czb.models import ApiChannel, Orders


def test_values():
    b = Orders.objects.filter(refund__create_time__lte="2020-08-06")
    # a = ApiChannel.objects.all().values_list("id", "name")
    # print(a)


if __name__ == '__main__':
    test_values()
